using System.Collections.Generic;
using System.Linq;
using UnityEngine;

[CreateAssetMenu(fileName = "Effect11-给自己设置目标的技能", menuName = "Skill/Effect/Effect11-给自己设置目标的技能", order = 11)]
public class Effect11 : EffectBase
{
    public override void Apply(Pair pair, GameEvent e, List<Chess> targets)
    {
        if(targets == null || targets.Count == 0) return;
        foreach (var skillConfig in targets.SelectMany(target => target.chessDate.skill))
        {
            skillConfig.Init(pair.Chess);
        }
    }
}